var Mock = require('mockjs');

exports.response = function (req, res) {
    return Mock.mock({
        "msg": "OK",
        "code": 0,
        "data": {
            "field": [
                {
                    "id": "code",
                    "name": "代码"
                },
                {
                    "id": "name",
                    "name": "名称"
                },
                {
                    "id": "multipleEmpty",
                    "name": "多/空"
                },
                {
                    "id": "holdingNumber",
                    "name": "持仓数量"
                },
                {
                    "id": "contractValue",
                    "name": "合约价值"
                },
                {
                    "id": "valueAddedValue",
                    "name": "估值增值"
                }
            ],
            "list|0": [
                {
                    "code|+1": 1,
                    "name": "国农科技",
                    "multipleEmpty": "空",
                    "holdingNumber": 4500,
                    "contractValue": 11,
                    "valueAddedValue": 13.51,
                }
            ]
        }
    })
}